package com.yuan.servicefeign.service;

import com.yuan.servicefeign.service.impl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName HelloService
 * @Description TODO
 * @Author yuan
 * @Date 2020/8/4 14:21
 * @Version 1.0
 */
@FeignClient(value = "SERVICE-HELLO", fallback = HelloServiceImpl.class)
public interface HelloService {

    @GetMapping(value = "hello")
    String hello(@RequestParam String name);

    @GetMapping(value = "info")
    String info(@RequestParam String name);
}
